package com.bdqn.zhao.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bdqn.zhao.pojo.IpPark;
import com.bdqn.zhao.pojo.SysDept;
import com.bdqn.zhao.pojo.SysRole;
import com.bdqn.zhao.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author zhangsan
 * @since 2023-04-24
 */
public interface SysUserService extends IService<SysUser> {


    // 全查用户
    List<SysUser> selectAllJ();

    /**
     * 根据id详细查
     * @param id
     * @return
     */
    SysUser selectbyidJ(int id);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */
    int delectSysuer(int id);

    /**
     * 修改密码
     * @param sysUser
     * @return
     */

    int updatePwd(SysUser sysUser);
    /**
     * 新增用户
     * @param sysUser
     * @return
     */
    int sysuserAdd(SysUser sysUser);

    /**
     * 模糊查询
     * @param status
     * @param userName
     * @return
     */
    List<SysUser> fuzzy(@PathVariable Integer pageNum,
                        @PathVariable Integer pageSize,String status, String userName);
    /**
     * 部门查询
     */
    List<SysDept> department();

    /**
     * 园区查询
     * @return
     */
    List<IpPark> departmentyq();
    /**
     * 角色查询
     */
    List<SysRole> departmentjs();
    int updatestaus(String loginName,String status);
}
